import request from '../../../../../utils/bsinRequest';

// 列表数据请求
export const getPositionGrades = (params) => {
  return request('/getPositionGrades', {
    serviceName: 'AdminNftPositionService',
    methodName: 'getPositionGrades',
    bizParams: {
      ...params,
    },
  });
};

// 创建头像等级
export const createPositionGrade = (params) => {
  return request('/createPositionGrade', {
    serviceName: 'AdminNftPositionService',
    methodName: 'createPositionGrade',
    bizParams: {
      ...params,
    },
  });
};

// 元数据列表数据请求
export const getPositionIPFSList = (params) => {
  return request('/getPageList', {
    serviceName: 'AdminPositionMetadataService',
    methodName: 'getPageList',
    bizParams: {
      ...params,
    },
  });
};

// 铸造
export const mintPosition = (params) => {
  return request('/mintPosition', {
    serviceName: 'AdminNftPositionService',
    methodName: 'mintPosition',
    bizParams: {
      ...params,
    },
  });
};

// 详情
export const getPosition = (params) => {
  return request('/getPosition', {
    serviceName: 'AdminNftPositionService',
    methodName: 'getPosition',
    bizParams: {
      ...params,
    },
  });
};

// 删除
export const deletePositionGrade = (params) => {
  return request('/deletePositionGrade', {
    serviceName: 'AdminNftPositionService',
    methodName: 'deletePositionGrade',
    bizParams: {
      ...params,
    },
  });
};
